package com.sgb.kjwl.di.business;

import com.sgb.kjwl.view.ui.fragment.self.MyPriceDemandFragment;
import com.sgb.kjwl.view.ui.fragment.self.MyPriceInfoFragment;
import com.sgb.kjwl.view.ui.fragment.self.MyPriceListFragment;

import com.sgb.kjwl.viewmodel.machine.PublicMyPriceModel;
import com.sgb.kjwl.viewmodel.self.publish.MyPriceDemandModel;
import com.sgb.kjwl.viewmodel.self.publish.MyPriceInfoModel;
import com.swgk.core.base.di.Fragment;

import dagger.Module;
import dagger.Provides;

@Module
public class BusinessFragModule {
    private MyPriceDemandFragment myPriceDemandFragment;
    private MyPriceInfoFragment myPriceInfoFragment;
    private MyPriceListFragment myPriceListFragment;

    public BusinessFragModule(MyPriceDemandFragment myPriceDemandFragment) {
        this.myPriceDemandFragment = myPriceDemandFragment;
    }

    public BusinessFragModule(MyPriceInfoFragment myPriceInfoFragment) {
        this.myPriceInfoFragment = myPriceInfoFragment;
    }

    public BusinessFragModule(MyPriceListFragment myPriceListFragment) {
        this.myPriceListFragment = myPriceListFragment;
    }

    @Provides
    @Fragment
    MyPriceDemandModel provideMyPriceDemandModel() {
        return new MyPriceDemandModel(myPriceDemandFragment);
    }

    @Provides
    @Fragment
    MyPriceInfoModel provideMyPriceInfoModel() {
        return new MyPriceInfoModel(myPriceInfoFragment);
    }

    @Provides
    @Fragment
    PublicMyPriceModel providePublicMyPriceModel() {
        return new PublicMyPriceModel(myPriceListFragment);
    }


}

